package com.dunka.demo.service;

import com.dunka.demo.pojo.Role;
import com.dunka.demo.util.RestResponseNew;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author Dunka
 * @Description //TODO
 * @Date 11:38   2019/8/8
 * @ClassName RoleService
 */
@Service
@FeignClient(name = "authority-service")
public interface RoleService {
    //    获取权限服务-获取某用户的所有角色
    @GetMapping(value = "/authority/listUserRoles")
    public RestResponseNew<List<Role>> listUserRoles(@RequestParam("id")Integer id);
}
